package com.example.shiptask.fragment;

import com.ab.fragment.AbFragment;
import com.example.shiptask.R;
import com.example.shiptask.util.SharePreferenceUtil;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * A simple {@link android.support.v4.app.Fragment} subclass.
 * 
 */
public class ShipStateFragment extends AbFragment {

	private View view;
	private TextView title;
	private SharePreferenceUtil sp;

	public ShipStateFragment() {
		// Required empty public constructor
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// Inflate the layout for this fragment
		view=inflater.inflate(R.layout.fragment_ship_state, null);
		sp=new SharePreferenceUtil(getActivity());
		title=(TextView)view.findViewById(R.id.textView1);
		title.setText(sp.getShip_name());
		return view;
	}

}
